<template>
  <div :class="disabled?'disBtn':'btnbox'" @click="addfn">{{value}}</div>
</template>

<script>
  export default {
      components: {},
      data() {
          return {}
      },
      props: {
        value:'',
        disabled:Boolean,
      },
      methods: {
        addfn(){
          this.$emit('click')
        }
      },
      mounted() {
      },
      created() {
      },
  }
</script>

<style scoped lang="less">
.btnbox,.disBtn{
  display: inline-block;
  padding: 0px 35px;
  background-color: #916ce0;
  color: white;
  height: 40px;
  box-sizing: border-box;
  line-height: 40px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
}
.disBtn{
  opacity: 0.5;
}
.btnbox:hover{
  opacity: 0.8;
}
</style>
